home *** CD-ROM | disk | FTP | other *** search
-
- /*************************************************/
- /* */
- /* puts.c */
- /* */
- /* Put a string to console. Uses stdio.h putchar */
- /* macro for operating system interface. Outputs */
- /* a newline after the string */
- /* */
- /* Copyright (c) 1990 */
- /* Pasquale J. Villani */
- /* All Rights Reserved */
- /* */
- /* */
- /*************************************************/
-
- #include <stdio.h>
-
- puts(s)
- const char *s;
- {
- int c;
-
- while ((c = *s++) != '\0')
- putchar(c);
- putchar('\n');
- }
-
-
-